package org.tuoren.official.domain.bo;

import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.tuoren.official.domain.TProductCarousel;

/**
 * 产品中心轮播图业务对象 t_product_carousel
 *
 * @author Lion Li
 * @date 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TProductCarousel.class, reverseConvertGenerate = false)
public class TProductCarouselBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 轮播图
     */
    @NotBlank(message = "轮播图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pictureOrder;

    /**
     * 是否展示 1显示0隐藏
     */
    @NotNull(message = "是否展示 1显示0隐藏不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isShow;

    /**
     * 移动端图片
     */
    @NotBlank(message = "移动端轮播图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appPhotoUrl;
}
